<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试实现交互</title>
</head>
<body>
    <script src="JS/jquery-3.7.1.min.js"></script>
    <button id = "test">点击按钮</button>
    <img src="Java.png" width="200px">


    <script>
        $(function(){
            $("#test").click(function(){
                $("img").attr("width","500px");
            })
        })
    </script>
</body>
</html>